// app_routes.dart
import 'package:flutter/material.dart';
import 'package:toys_flutter/main.dart';
import 'package:toys_flutter/pages/LoginPage.dart';

class AppRoutes {
  static const String login = '/login';
  static const String home = '/home';
  static const String user = '/user';
  // 个人设置
  static const String userSetting = '/userSetting';

  static Map<String, WidgetBuilder> getRoutes() {
    return {
      '/home': (context) => const MyApp(),
      login: (context) => const LoginPage(),
    };
  }
}
